

	<?php foreach( $pager->getResults() as $faq ): ?>
			<div class="question1">
				<?php echo __('Q:'); ?>
			</div>
			<div class="question2">
							<?php if( $sf_user->isAuthenticated() ): ?>
					<div id="" class="edit">
						<?php echo link_to(image_tag('note_edit.png', array('style' => 'border:0px;')), 'faq/edit?id=' . $faq->getId()); ?>
					</div>
				<?php endif;?>
				<?php echo $faq->getName(); ?>
			</div>

			<div class="answer1"><?php echo __('A:'); ?></div>
			<div class="answer2"><?php echo $faq->getText(); ?></div>

	<?php endforeach;?>


<div id="" class="conpage">
	<?php if ($pager->haveToPaginate()): ?>
	  <?php echo link_to('&laquo;', 'faq/show?page='.$pager->getFirstPage()) ?>
	  <?php echo link_to('&lt;', 'faq/show?page='.$pager->getPreviousPage()) ?>
	  <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
		<?php echo ($page == $pager->getPage()) ? $page : link_to($page, 'faq/show?page='.$page) ?>
		<?php if ($page != $pager->getCurrentMaxLink()): ?> - <?php endif ?>
	  <?php endforeach ?>
	  <?php echo link_to('&gt;', 'faq/show?page='.$pager->getNextPage()) ?>
	  <?php echo link_to('&raquo;', 'faq/show?page='.$pager->getLastPage()) ?>
	<?php endif ?>
</div>